<%@page isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<div style="padding:10px">
		<span class="title">Course Details</span>			
			<table class="details" width="450">
				<tr>
					<td><label>Title</label></td>
					<td>${course.title}</td>
				</tr>
				<tr>
					<td><label>Description</label></td>
					<td>${course.description}</td>
				</tr>
				<tr>
					<td><label>Program</label></td>
					<c:choose>
						<c:when test="${not empty course.fileKey}">
							<td><a href="/serve.do?key=${course.fileKey}">View File</a></td>
						</c:when>
						<c:otherwise>
							<td>None attached</td>
						</c:otherwise>
					</c:choose>
				</tr>
				<tr>
					<td><label>Assigned Lecturer</label></td>
					<c:choose>
						<c:when test="${not empty course.lecturerName}">
							<td>${course.lecturerName}</td>
						</c:when>
						<c:otherwise>
							<td>None assigned</td>
						</c:otherwise>
					</c:choose>
				</tr>
				
				<tr>
					<td colspan="2"><a class="underlineLink" href="javascript:history.go(-1)">Take me back</a></td>
				</tr>
			</table>
</div>